d/p/Terminate-individual-tests-after-10-minutes.patch: replace d/p/debian/Terminate...
authorSimon McVittie <smcv@debian.org>
Thu, 1 Dec 2016 12:38:14 +0000 (12:38 +0000)
committerSimon McVittie <smcv@debian.org>
Thu, 1 Dec 2016 12:38:14 +0000 (12:38 +0000)
debian/changelog
debian/patches/Terminate-individual-tests-after-10-minutes.patch [new file with mode: 0644]
debian/patches/debian/Terminate-individual-tests-after-half-an-hour.patch [deleted file]
debian/patches/series

index 3b03577299193d5f4d58969c49b7a63f1914ce17..ff60a535c148e66d86e396a65e7011c5d5237bdb 100644 (file)
@@ -8,6 +8,11 @@ ostree (2016.14-2) UNRELEASED; urgency=medium
     However, these are not regressions, so we should not FTBFS just
     because we happen to have been unlucky during build.
 
+  * d/p/Terminate-individual-tests-after-10-minutes.patch:
+    replace d/p/debian/Terminate-individual-tests-after-half-an-hour.patch
+    with the version that I sent upstream, which uses SIGABRT and
+    terminates the tests sooner
+
  -- Simon McVittie <smcv@debian.org>  Thu, 01 Dec 2016 12:29:00 +0000
 
 ostree (2016.14-1) unstable; urgency=medium
diff --git a/debian/patches/Terminate-individual-tests-after-10-minutes.patch b/debian/patches/Terminate-individual-tests-after-10-minutes.patch
new file mode 100644 (file)
index 0000000..b013726
--- /dev/null
@@ -0,0 +1,33 @@
+From: Simon McVittie <smcv@debian.org>
+Date: Thu, 1 Dec 2016 11:25:33 +0000
+Subject: Terminate individual tests after 10 minutes
+
+While using the Automake parallel test harness, if a test hangs for
+long enough for an external watchdog to kill the entire build process
+(as happens in Debian sbuild after 150 minutes with no activity on
+stdout/stderr), the logs will not be shown. If we make an individual
+test time out sooner, logs are more likely to be shown.
+
+We use SIGABRT so that the process(es) under test will dump core,
+allowing the point at which ostree is blocking to be analyzed.
+After 1 minute, if any have not died, we kill them again with SIGKILL.
+
+Signed-off-by: Simon McVittie <smcv@debian.org>
+Forwarded: https://github.com/ostreedev/ostree/pull/607
+---
+ buildutil/tap-test | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/buildutil/tap-test b/buildutil/tap-test
+index c8da31e..4adee45 100755
+--- a/buildutil/tap-test
++++ b/buildutil/tap-test
+@@ -19,7 +19,7 @@ function skip_cleanup() {
+     echo "Skipping cleanup of ${tempdir}"
+ }
+ cd ${tempdir}
+-${srcd}/${bn} -k --tap
++timeout --kill-after=60 --signal=ABRT 600 ${srcd}/${bn} -k --tap
+ rc=$?
+ case "${TEST_SKIP_CLEANUP:-}" in
+     no|"") cleanup ;;
diff --git a/debian/patches/debian/Terminate-individual-tests-after-half-an-hour.patch b/debian/patches/debian/Terminate-individual-tests-after-half-an-hour.patch
deleted file mode 100644 (file)
index 33f660f..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-From: Simon McVittie <smcv@debian.org>
-Date: Fri, 9 Sep 2016 08:23:36 +0100
-Subject: Terminate individual tests after half an hour
-
-While using the Automake parallel test harness, if a test hangs for
-long enough for an external watchdog to kill the entire build process
-(as happens in Debian sbuild after 150 minutes with no activity on
-stdout/stderr), the logs will not be shown. If we make an individual
-test time out sooner, logs are more likely to be shown.
-
-Signed-off-by: Simon McVittie <smcv@debian.org>
----
- buildutil/tap-test | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/buildutil/tap-test b/buildutil/tap-test
-index c8da31e..fd79122 100755
---- a/buildutil/tap-test
-+++ b/buildutil/tap-test
-@@ -19,7 +19,7 @@ function skip_cleanup() {
-     echo "Skipping cleanup of ${tempdir}"
- }
- cd ${tempdir}
--${srcd}/${bn} -k --tap
-+timeout --kill-after=60 1800 ${srcd}/${bn} -k --tap
- rc=$?
- case "${TEST_SKIP_CLEANUP:-}" in
-     no|"") cleanup ;;
index c90823f5939b81b037ee9d0d0fd328cf2dc26155..5bf1bffe1e1324f3bbf64792d160c232a4d311b8 100644 (file)
@@ -4,4 +4,4 @@ ostree-repo-traverse-Don-t-leak-floating-GVariant.patch
 pull_with_options-Don-t-leak-csum_v.patch
 pull-Don-t-leak-delta-superblock-variants.patch
 delta-compilation-Fix-leak.patch
-debian/Terminate-individual-tests-after-half-an-hour.patch
+Terminate-individual-tests-after-10-minutes.patch